<?php

declare (strict_types=1);
namespace App\Model;

use Hyperf\DbConnection\Model\Model;
/**
 */
class VideoCallAuditLog extends Model
{
    /**
     * The table associated with the model.
     *
     * @var string
     */
    protected $table = 'video_call_audit_logs';
    /**
     * The attributes that are mass assignable.
     *
     * @var array
     */
    protected $fillable = [];
    /**
     * The attributes that should be cast to native types.
     *
     * @var array
     */
    protected $casts = [];

    public function addAuditLog(string $channelId, string $requestId, string $riskLevel, string $riskLabel, string $dataJson)
    {
        $model = new self();

        $model->channel_id    = $channelId;
        $model->request_id    = $requestId;
        $model->risk_level    = $riskLevel;
        $model->risk_label    = $riskLabel;
        $model->callback_info = $dataJson;

        return $model->save();
    }
}
